﻿@model Stat
@{
    ViewBag.Title = "Edit";
}

<h2>Edit @Model.Name</h2>
@using (Html.BeginForm(null))
{
    @Html.HiddenFor(m => m.Id)
    <p>Stat name:</p>
    @Html.EditorFor(m => m.Name)
    @Html.ValidationMessageFor(m => m.Name)
    @Html.EditorFor(m => m.Quantities, "QuantitiesNoUnits")
    <button type="submit">Submit</button>
    @Html.ActionLink("Back", "Index", new { id = Model.Id })
}
